package com.wsl.sevicer.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lww.springcloudapi.pojo.TabHallUser;
import com.wsl.mapper.UserMapper;
import com.wsl.sevicer.UserSevicer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Wrapper;
import java.util.Map;

@Service
public class UserSevicerimpl implements UserSevicer {
    @Autowired
    UserMapper usermapper;
    @Override
    public TabHallUser selectuser(TabHallUser user) {
        QueryWrapper<TabHallUser> wrapper=new QueryWrapper<>();
        wrapper.eq("pnumber",user.getPnumber());
        return usermapper.selectOne(wrapper);
    }

    @Override
    public int upuserpassword(Map map) {

        return usermapper.upuserpassword(map);
    }
}
